home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C++ source text
| default
| |
98%
| file
| C++ source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 64 63 2e 70 |Path: ne|ws.rdc.p|
|00000010| 75 63 2d 72 69 6f 2e 62 | 72 21 75 73 65 6e 65 74 |uc-rio.b|r!usenet|
|00000020| 0a 46 72 6f 6d 3a 20 50 | 61 75 6c 6f 20 45 64 75 |.From: P|aulo Edu|
|00000030| 61 72 64 6f 20 4e 65 76 | 65 73 20 3c 6e 65 76 65 |ardo Nev|es <neve|
|00000040| 73 40 6c 6d 66 2d 64 69 | 2e 70 75 63 2d 72 69 6f |s@lmf-di|.puc-rio|
|00000050| 2e 62 72 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |.br>.New|sgroups:|
|00000060| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2b 2b 0a 53 | comp.la|ng.c++.S|
|00000070| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 46 72 69 65 |ubject: |Re: Frie|
|00000080| 6e 64 20 76 73 2e 20 4d | 65 6d 62 65 72 20 66 75 |nd vs. M|ember fu|
|00000090| 6e 63 74 69 6f 6e 20 66 | 6f 72 20 6f 70 65 72 61 |nction f|or opera|
|000000a0| 74 6f 72 20 6f 76 65 72 | 6c 6f 61 64 0a 44 61 74 |tor over|load.Dat|
|000000b0| 65 3a 20 46 72 69 2c 20 | 31 32 20 41 70 72 20 31 |e: Fri, |12 Apr 1|
|000000c0| 39 39 36 20 31 31 3a 35 | 37 3a 33 34 20 2d 30 33 |996 11:5|7:34 -03|
|000000d0| 30 30 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |00.Organ|ization:|
|000000e0| 20 4c 61 62 6f 72 61 74 | 6f 72 69 6f 20 64 65 20 | Laborat|orio de |
|000000f0| 4d 65 74 6f 64 6f 73 20 | 46 6f 72 6d 61 69 73 20 |Metodos |Formais |
|00000100| 2d 20 50 55 43 2d 52 69 | 6f 0a 4d 65 73 73 61 67 |- PUC-Ri|o.Messag|
|00000110| 65 2d 49 44 3a 20 3c 33 | 31 36 45 36 46 35 45 2e |e-ID: <3|16E6F5E.|
|00000120| 32 46 31 43 40 6c 6d 66 | 2d 64 69 2e 70 75 63 2d |2F1C@lmf|-di.puc-|
|00000130| 72 69 6f 2e 62 72 3e 0a | 52 65 66 65 72 65 6e 63 |rio.br>.|Referenc|
|00000140| 65 73 3a 20 3c 34 6b 6a | 35 35 6e 24 6d 76 32 40 |es: <4kj|55n$mv2@|
|00000150| 68 6f 6d 65 6e 65 74 2e | 68 6f 6d 2e 6e 65 74 3e |homenet.|hom.net>|
|00000160| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000170| 73 74 3a 20 77 69 74 74 | 67 65 6e 73 74 65 69 6e |st: witt|genstein|
|00000180| 2e 6c 6d 66 2d 64 69 2e | 70 75 63 2d 72 69 6f 2e |.lmf-di.|puc-rio.|
|00000190| 62 72 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |br.Mime-|Version:|
|000001a0| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|000001b0| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|000001c0| 68 61 72 73 65 74 3d 75 | 73 2d 61 73 63 69 69 0a |harset=u|s-ascii.|
|000001d0| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|000001e0| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|000001f0| 58 2d 4d 61 69 6c 65 72 | 3a 20 4d 6f 7a 69 6c 6c |X-Mailer|: Mozill|
|00000200| 61 20 32 2e 30 31 20 28 | 58 31 31 3b 20 49 3b 20 |a 2.01 (|X11; I; |
|00000210| 41 49 58 20 31 29 0a 54 | 6f 3a 20 64 65 6e 67 65 |AIX 1).T|o: denge|
|00000220| 6c 40 68 6f 6d 2e 6e 65 | 74 0a 0a 44 61 6e 69 65 |l@hom.ne|t..Danie|
|00000230| 6c 20 50 2e 20 45 6e 67 | 65 6c 20 49 49 49 20 77 |l P. Eng|el III w|
|00000240| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 43 61 6e 20 61 |rote:.> |.> Can a|
|00000250| 6e 79 6f 6e 65 20 74 65 | 6c 6c 20 6d 65 20 74 68 |nyone te|ll me th|
|00000260| 65 20 72 65 6c 61 74 69 | 76 65 20 61 64 76 61 6e |e relati|ve advan|
|00000270| 74 61 67 65 73 20 61 6e | 64 20 64 69 73 61 64 76 |tages an|d disadv|
|00000280| 61 6e 74 61 67 65 73 20 | 6f 66 20 75 73 69 6e 67 |antages |of using|
|00000290| 0a 3e 20 61 20 66 72 69 | 65 6e 64 20 66 75 6e 63 |.> a fri|end func|
|000002a0| 74 69 6f 6e 20 76 73 2e | 20 61 20 6d 65 6d 62 65 |tion vs.| a membe|
|000002b0| 72 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 6f 76 |r functi|on to ov|
|000002c0| 65 72 6c 6f 61 64 20 61 | 6e 20 6f 70 65 72 61 74 |erload a|n operat|
|000002d0| 6f 72 2c 20 73 75 63 68 | 0a 3e 20 61 73 20 61 64 |or, such|.> as ad|
|000002e0| 64 69 74 69 6f 6e 3f 20 | 0a 3e 20 2e 2e 2e 0a 3e |dition? |.> ....>|
|000002f0| 20 43 61 6e 20 61 6e 79 | 6f 6e 65 20 74 65 6c 6c | Can any|one tell|
|00000300| 20 6d 65 20 69 66 20 6f | 6e 65 20 6f 66 20 74 68 | me if o|ne of th|
|00000310| 65 73 65 20 74 68 65 20 | 22 70 72 65 66 65 72 72 |ese the |"preferr|
|00000320| 65 64 22 20 77 61 79 20 | 6f 66 20 64 6f 69 6e 67 |ed" way |of doing|
|00000330| 20 69 74 3f 0a 3e 20 41 | 6e 64 2c 20 77 68 61 74 | it?.> A|nd, what|
|00000340| 20 61 72 65 20 74 68 65 | 20 61 64 76 61 6e 74 61 | are the| advanta|
|00000350| 67 65 73 20 61 6e 64 20 | 64 69 73 61 64 76 61 6e |ges and |disadvan|
|00000360| 74 61 67 65 73 20 6f 66 | 20 65 61 63 68 3f 0a 3e |tages of| each?.>|
|00000370| 20 0a 3e 20 54 68 61 6e | 6b 73 2e 0a 3e 20 0a 3e | .> Than|ks..> .>|
|00000380| 20 2d 2d 0a 3e 20 44 61 | 6e 20 45 6e 67 65 6c 20 | --.> Da|n Engel |
|00000390| 28 64 65 6e 67 65 6c 40 | 68 6f 6d 2e 6e 65 74 29 |(dengel@|hom.net)|
|000003a0| 0a 0a 57 68 65 6e 20 79 | 6f 75 20 75 73 65 20 61 |..When y|ou use a|
|000003b0| 20 66 72 69 65 6e 64 20 | 66 75 6e 63 74 69 6f 6e | friend |function|
|000003c0| 20 79 6f 75 72 20 63 6f | 64 65 20 62 65 63 6f 6d | your co|de becom|
|000003d0| 65 73 20 6d 6f 72 65 20 | 63 6f 6e 73 69 73 74 65 |es more |consiste|
|000003e0| 6e 74 2c 20 73 69 6e 63 | 65 0a 74 68 65 20 73 61 |nt, sinc|e.the sa|
|000003f0| 6d 65 20 63 6f 6e 76 65 | 72 73 69 6f 6e 73 20 20 |me conve|rsions |
|00000400| 63 61 6e 20 62 65 20 61 | 70 70 6c 69 65 64 20 74 |can be a|pplied t|
|00000410| 6f 20 62 6f 74 68 20 61 | 72 67 75 6d 65 6e 74 73 |o both a|rguments|
|00000420| 2e 20 53 65 65 20 61 20 | 6f 70 65 72 61 74 6f 72 |. See a |operator|
|00000430| 2b 0a 64 65 66 69 6e 65 | 64 20 61 73 20 66 72 69 |+.define|d as fri|
|00000440| 65 6e 64 20 69 6e 20 61 | 20 73 74 72 69 6e 67 20 |end in a| string |
|00000450| 63 6c 61 73 73 20 74 68 | 61 74 20 68 61 73 20 61 |class th|at has a|
|00000460| 20 63 74 6f 72 20 66 72 | 6f 6d 20 61 20 73 74 61 | ctor fr|om a sta|
|00000470| 6e 64 61 72 64 20 63 0a | 73 74 72 69 6e 67 20 3a |ndard c.|string :|
|00000480| 0a 0a 63 6c 61 73 73 20 | 53 74 72 69 6e 67 0a 7b |..class |String.{|
|00000490| 0a 66 72 69 65 6e 64 20 | 53 74 72 69 6e 67 20 6f |.friend |String o|
|000004a0| 70 65 72 61 74 6f 72 2b | 28 63 6f 6e 73 74 20 53 |perator+|(const S|
|000004b0| 74 72 69 6e 67 26 2c 20 | 63 6f 6e 73 74 20 53 74 |tring&, |const St|
|000004c0| 72 69 6e 67 26 29 3b 0a | 0a 70 75 62 6c 69 63 3a |ring&);.|.public:|
|000004d0| 0a 20 20 53 74 72 69 6e | 67 28 63 6f 6e 73 74 20 |. Strin|g(const |
|000004e0| 63 68 61 72 2a 20 63 53 | 74 72 29 20 7b 20 2e 2e |char* cS|tr) { ..|
|000004f0| 2e 20 7d 0a 7d 3b 0a 0a | 53 74 72 69 6e 67 20 6f |. }.};..|String o|
|00000500| 70 65 72 61 74 6f 72 2b | 28 63 6f 6e 73 74 20 53 |perator+|(const S|
|00000510| 74 72 69 6e 67 26 20 61 | 2c 20 63 6f 6e 73 74 20 |tring& a|, const |
|00000520| 53 74 72 69 6e 67 26 20 | 62 29 7b 20 2e 2e 2e 20 |String& |b){ ... |
|00000530| 7d 0a 0a 53 6f 20 79 6f | 75 20 63 61 6e 20 64 6f |}..So yo|u can do|
|00000540| 20 3a 0a 0a 53 74 72 69 | 6e 67 20 78 20 2c 20 79 | :..Stri|ng x , y|
|00000550| 2c 20 7a 3b 0a 0a 7a 20 | 3d 20 78 20 2b 20 79 3b |, z;..z |= x + y;|
|00000560| 0a 7a 20 3d 20 78 20 2b | 20 22 61 62 63 22 3b 20 |.z = x +| "abc"; |
|00000570| 2f 2f 69 6d 70 6c 69 63 | 69 74 20 63 6f 6e 76 65 |//implic|it conve|
|00000580| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 73 65 63 |rsion of| the sec|
|00000590| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 0a 7a 20 3d |ond argu|ment.z =|
|000005a0| 20 22 64 65 66 22 20 2b | 20 79 3b 20 2f 2f 69 6d | "def" +| y; //im|
|000005b0| 70 6c 69 63 69 74 20 63 | 6f 6e 76 65 72 73 69 6f |plicit c|onversio|
|000005c0| 6e 20 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 61 |n of the| first a|
|000005d0| 72 67 75 6d 65 6e 74 0a | 0a 69 66 20 79 6f 75 20 |rgument.|.if you |
|000005e0| 77 65 72 65 20 75 73 69 | 6e 67 20 61 6e 20 6f 70 |were usi|ng an op|
|000005f0| 65 72 61 74 6f 72 20 6d | 65 6d 62 65 72 20 66 75 |erator m|ember fu|
|00000600| 6e 63 74 69 6f 6e 2c 20 | 74 68 65 20 73 75 6d 20 |nction, |the sum |
|00000610| 75 73 69 6e 67 20 61 20 | 63 68 61 72 2a 20 61 73 |using a |char* as|
|00000620| 0a 74 68 65 20 66 69 72 | 73 74 20 61 72 67 75 6d |.the fir|st argum|
|00000630| 65 6e 74 20 77 6f 75 6c | 64 20 66 61 69 6c 2e 20 |ent woul|d fail. |
|00000640| 0a 52 65 6d 65 6d 62 65 | 72 20 74 68 61 74 20 69 |.Remembe|r that i|
|00000650| 66 20 69 74 20 77 65 72 | 65 20 61 20 6d 65 6d 62 |f it wer|e a memb|
|00000660| 65 72 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 65 20 |er funct|ion the |
|00000670| 63 61 6c 6c 20 77 6f 75 | 6c 64 20 62 65 20 74 68 |call wou|ld be th|
|00000680| 65 20 73 61 6d 65 20 61 | 73 0a 22 64 65 66 22 2e |e same a|s."def".|
|00000690| 6f 70 65 72 61 74 6f 72 | 2b 28 79 29 0a 61 6e 64 |operator|+(y).and|
|000006a0| 20 74 68 65 20 74 79 70 | 65 20 63 68 61 72 2a 20 | the typ|e char* |
|000006b0| 64 6f 65 73 6e 27 74 20 | 68 61 76 65 20 74 68 69 |doesn't |have thi|
|000006c0| 73 20 6d 65 6d 62 65 72 | 20 66 75 6e 63 74 69 6f |s member| functio|
|000006d0| 6e 0a 0a 2d 2d 20 0a 50 | 61 75 6c 6f 20 45 64 75 |n..-- .P|aulo Edu|
|000006e0| 61 72 64 6f 20 4e 65 76 | 65 73 20 20 20 20 20 20 |ardo Nev|es |
|000006f0| 20 20 20 20 20 20 20 4c | 61 62 6f 72 61 74 6f 72 | L|aborator|
|00000700| 69 6f 20 64 65 20 4d 65 | 74 6f 64 6f 73 20 46 6f |io de Me|todos Fo|
|00000710| 72 6d 61 69 73 20 2d 20 | 50 55 43 2d 52 69 6f 0a |rmais - |PUC-Rio.|
|00000720| 6d 61 69 6c 74 6f 3a 6e | 65 76 65 73 40 6c 6d 66 |mailto:n|eves@lmf|
|00000730| 2d 64 69 2e 70 75 63 2d | 72 69 6f 2e 62 72 20 20 |-di.puc-|rio.br |
|00000740| 54 65 6c 2e 3a 20 28 30 | 32 31 29 35 31 32 2d 38 |Tel.: (0|21)512-8|
|00000750| 30 34 35 0a 52 69 6f 20 | 64 65 20 4a 61 6e 65 69 |045.Rio |de Janei|
|00000760| 72 6f 20 2d 20 42 72 61 | 73 69 6c 0a |ro - Bra|sil. |
+--------+-------------------------+-------------------------+--------+--------+